#include <windows.h>
#include <string.h>
#include "FirstDll.h"

int WINAPI DllMain(HINSTANCE hInstance, DWORD fdwReason, PVOID pvReserved)
{
	return TRUE;
}

EXPORT BOOL CALLBACK EdrCenterText(HDC hdc, PRECT prc, LPCWSTR pString)
{
	int iLength;
	SIZE size;
	iLength = wcslen(pString);
	GetTextExtentPoint32(hdc, pString, iLength, &size);
	return TextOut(hdc,(prc->right - prc->left - size.cx) / 2,
						(prc->bottom - prc->top - size.cy) / 2,
						pString, iLength);
}